<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="edit.do" method="post">
		<input type="hidden" name="id" value="${employee.id }" />
		<table border="1" cellspacing="0" align="center">
			<tr>
				<td>姓名</td>
				<td><input type="text" name="name" value="${employee.name }" /></td>
			</tr>
			<tr>
				<td>性别</td>
				<td>男:<input type="radio" name="gender" value="0"
					<c:if test="${employee.gender == 0}">checked="checked" </c:if> />
					女:<input type="radio" name="gender" value="1"
					<c:if test="${employee.gender == 1}">checked="checked" </c:if> /></td>
			</tr>
			<tr>
				<td>生日</td>
				<td><input type="date" name="birthday"
					value="${employee.birthday }" /></td>
			</tr>
			<tr>
				<td>职位</td>
				<td><input type="text" name="job" value="${employee.job }" /></td>
			</tr>
			<tr>
				<td>部门</td>
				<td><select name="deptId">
						<c:forEach items="${deptList }" var="dept">
							<option value="${dept.id }"
								<c:if test="${employee.deptId == dept.id }">selected="selected"</c:if>>${dept.name }</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr>
				<td colspan="2"><button type="submit">修改员工</button></td>
			</tr>
		</table>
	</form>
</body>
</html>